package thread;

import java.lang.reflect.*;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.Vector;

public class ClassTest {
    public static void main(String[] args) {
        Class c= Vector.class;
        System.out.println(c.getSuperclass());
        System.out.println(Arrays.toString(c.getInterfaces()));
        //属性
        Field[] fr=c.getDeclaredFields();

        //方法
        Method mr[]=c.getDeclaredMethods();
        //构造方法
        Constructor []cr=c.getDeclaredConstructors();

    }
}
